home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #21.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  5.4 KB  |  237 lines

  1. class ┬º#21┬º extends MovieClip
  2. {
  3.    static var ┬º#53┬º = false;
  4.    var _playing = true;
  5.    var _flippedX = false;
  6.    var _flippedY = false;
  7.    function ┬º#21┬º()
  8.    {
  9.       super();
  10.    }
  11.    function __resolve(name)
  12.    {
  13.       var _loc3_ = this["#2"]() + "can\'t resolve method or property \"" + name + "\"";
  14.       arguments.shift();
  15.       if(arguments.length > 0)
  16.       {
  17.          _loc3_ += " with arguments [" + arguments.join(", ") + "]";
  18.       }
  19.       eval("#0").log(_loc3_);
  20.    }
  21.    function ┬º#2┬º()
  22.    {
  23.       return "MovieClipWrapper (" + this._name + "f" + this._currentframe + "/" + this._totalframes + " p" + this._playing + "):  ";
  24.    }
  25.    function toString()
  26.    {
  27.       var _loc3_ = "[MovieClipWrapper " + this._name + " ";
  28.       _loc3_ += "frame=" + this._currentframe + "/" + this._totalframes + " ";
  29.       _loc3_ += "x=" + this._x + " y=" + this._y + " w=" + this._width + " h=" + this._height + " ";
  30.       _loc3_ += "xscale=" + this._xscale + " yscale=" + this._yscale;
  31.       _loc3_ += "alpha=" + this._alpha + " visible=" + this._visible + " ";
  32.       _loc3_ += "depth=" + this.getDepth() + " ";
  33.       if(this._url != _root._url)
  34.       {
  35.          _loc3_ += "url=" + this._url + " ";
  36.       }
  37.       _loc3_ += "]";
  38.       return _loc3_;
  39.    }
  40.    function ┬º#311┬º()
  41.    {
  42.       if(eval("#21")["#53"])
  43.       {
  44.          eval("#0").log(this["#2"]() + "#311");
  45.       }
  46.       this._x = Math.round(this._x);
  47.       this._y = Math.round(this._y);
  48.    }
  49.    function ┬º#458┬º(┬º#103┬º)
  50.    {
  51.       if(!this._flippedX)
  52.       {
  53.          this._flippedX = true;
  54.          this._xscale *= -1;
  55.          if(┬º#103┬º)
  56.          {
  57.             this._x *= -1;
  58.          }
  59.          if(eval("#21")["#53"])
  60.          {
  61.             eval("#0").log(this["#2"]() + "flipX: " + this._xscale);
  62.          }
  63.       }
  64.    }
  65.    function ┬º#439┬º(┬º#103┬º)
  66.    {
  67.       if(this._flippedX)
  68.       {
  69.          this._flippedX = false;
  70.          this._xscale *= -1;
  71.          if(┬º#103┬º)
  72.          {
  73.             this._x *= -1;
  74.          }
  75.          if(eval("#21")["#53"])
  76.          {
  77.             eval("#0").log(this["#2"]() + "unflipX: " + this._xscale);
  78.          }
  79.       }
  80.    }
  81.    function ┬º#459┬º(┬º#103┬º)
  82.    {
  83.       if(!this._flippedY)
  84.       {
  85.          this._flippedY = true;
  86.          this._yscale *= -1;
  87.          if(┬º#103┬º)
  88.          {
  89.             this._y *= -1;
  90.          }
  91.          if(eval("#21")["#53"])
  92.          {
  93.             eval("#0").log(this["#2"]() + "flipY: " + this._xscale);
  94.          }
  95.       }
  96.    }
  97.    function ┬º#440┬º(┬º#103┬º)
  98.    {
  99.       if(this._flippedY)
  100.       {
  101.          this._flippedY = false;
  102.          this._yscale *= -1;
  103.          if(┬º#103┬º)
  104.          {
  105.             this._y *= -1;
  106.          }
  107.          if(eval("#21")["#53"])
  108.          {
  109.             eval("#0").log(this["#2"]() + "unflipY: " + this._xscale);
  110.          }
  111.       }
  112.    }
  113.    function play()
  114.    {
  115.       super.play();
  116.       if(!this._playing)
  117.       {
  118.          this.onPlay();
  119.       }
  120.       this._playing = true;
  121.       if(eval("#21")["#53"])
  122.       {
  123.          eval("#0").log(this["#2"]() + "play");
  124.       }
  125.    }
  126.    function gotoAndPlay(┬º#284┬º)
  127.    {
  128.       if(!this["#229"](┬º#284┬º))
  129.       {
  130.          return undefined;
  131.       }
  132.       super.gotoAndPlay(┬º#284┬º);
  133.       if(!this._playing)
  134.       {
  135.          this.onPlay();
  136.       }
  137.       this._playing = true;
  138.       if(eval("#21")["#53"])
  139.       {
  140.          eval("#0").log(this["#2"]() + "gotoAndPlay(" + ┬º#284┬º + ")");
  141.       }
  142.    }
  143.    function stop()
  144.    {
  145.       super.stop();
  146.       if(this._playing)
  147.       {
  148.          this.onStop();
  149.       }
  150.       this._playing = false;
  151.       if(eval("#21")["#53"])
  152.       {
  153.          eval("#0").log(this["#2"]() + "stop");
  154.       }
  155.    }
  156.    function gotoAndStop(┬º#284┬º)
  157.    {
  158.       if(!this["#229"](┬º#284┬º))
  159.       {
  160.          return undefined;
  161.       }
  162.       super.gotoAndStop(┬º#284┬º);
  163.       if(this._playing)
  164.       {
  165.          this.onStop();
  166.       }
  167.       this._playing = false;
  168.       if(eval("#21")["#53"])
  169.       {
  170.          eval("#0").log(this["#2"]() + "gotoAndStop(" + ┬º#284┬º + ")");
  171.       }
  172.    }
  173.    function ┬º#34┬º()
  174.    {
  175.       return this._playing;
  176.    }
  177.    function ┬º#229┬º(┬º#284┬º)
  178.    {
  179.       if(typeof ┬º#284┬º == "number")
  180.       {
  181.          if(┬º#284┬º < 1 || ┬º#284┬º > this._totalframes)
  182.          {
  183.             eval("#0").log(this["#2"]() + "invalid frame number " + ┬º#284┬º);
  184.             return false;
  185.          }
  186.          return true;
  187.       }
  188.       return true;
  189.    }
  190.    function onPlay()
  191.    {
  192.    }
  193.    function onStop()
  194.    {
  195.    }
  196.    function getFrameForLabel(label)
  197.    {
  198.       if(label == undefined)
  199.       {
  200.          return undefined;
  201.       }
  202.       var _loc3_ = this._currentframe;
  203.       super.gotoAndStop(label);
  204.       var _loc4_ = this._currentframe;
  205.       if(this._playing)
  206.       {
  207.          super.gotoAndPlay(_loc3_);
  208.       }
  209.       else
  210.       {
  211.          super.gotoAndStop(_loc3_);
  212.       }
  213.       return _loc4_;
  214.    }
  215.    function getOffsetFromLabel(label)
  216.    {
  217.       if(label == undefined)
  218.       {
  219.          return undefined;
  220.       }
  221.       var _loc2_ = this.getFrameForLabel(label);
  222.       return this._currentframe - _loc2_;
  223.    }
  224.    function removeMovieClip()
  225.    {
  226.       if(eval("#21")["#53"])
  227.       {
  228.          eval("#0").log(this["#2"]() + "removeMovieClip");
  229.       }
  230.       this.onRemove();
  231.       super.removeMovieClip();
  232.    }
  233.    function onRemove()
  234.    {
  235.    }
  236. }
  237.